package com.migu.spms.dao.inf;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.migu.spms.dao.entity.UserProjectCriteria;
import com.migu.spms.dao.entity.UserProjectDO;
@Repository(value="IUserProjectDO")
public interface IUserProjectDO {
    int deleteByPrimaryKey(Integer id);

    int insert(UserProjectCriteria record);

    int insertSelective(UserProjectCriteria record);

    UserProjectDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserProjectCriteria record);

    int updateByPrimaryKey(UserProjectCriteria record);
    /**
     * 根据uid和pid查询rid
     * @param record
     * @return
     */
    UserProjectDO selectByCriteria(UserProjectCriteria record);
    /**
     * uid和pid可以查多个rid
     */
    List<UserProjectDO> selectListByCriteria(UserProjectCriteria record);
}